3 Interface Description > 3.10 IO Interface > 3.10.2 Using GPIO Pin10 as Pulse Counter

3.10.2
The GPIO10 pin can be assigned two different functions selectable by AT command:
•
The AT^SCPIN command configures the pin for use as GPIO.
•
With AT^SCCNT and AT^SSCNT the pin can be configured and operated as pulse counter.
Both functions exclude each other. The pulse counter disables the GPIO functionality, and vice versa, the GPIO functionality disables the pulse counter.
Detailed AT command descriptions can be found in [1].
The pulse counter is designed to measure signals from 0 to 1000 pulses per second. It can be operated either in Limit counter mode or Start-Stop mode. Depending on the selected mode the counted value is either the number of pulses or the time (in milliseconds) taken to generate a number of pulses specified with AT^SCCNT.
The Limit counter mode, the displayed measurement result (URC “^SSCNT: <count>”) implies an inaccuracy <5ms. In Start-Stop mode, you can achieve 100% accuracy if you take care that no pulses are transmitted before starting the pulse counter (AT^SSCNT=0 or 1) and after clos­ing the pulse counter (AT^SSCNT=3).